package com.leizi.igym.dto;

import com.leizi.igym.domain.Category;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-08  10:32
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CategoryDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 4702057027116321512L;

    // 分类id
    private Long id;

    // 分类父id
    private Long parentId;

    // 分类描述
    private String descrip;

    // 分类名称
    private String categoryName;

    // 子分类
    private List<Category> childCategory;
}
